﻿#region Header
/********************************************************           
 * WarningMessage      
 *                                                         
 * Author:  Richard Barclay  (phphanatic at gmail dot com) 
 * 
 * Copyright: 2009 Richard Barclay
 * 
 * License: GNU General Public License (GPL)
 *     
 * This file is part of the Intergr8.GoogleVisualization library.
 *
 *   The Intergr8.GoogleVisualization library is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *  Intergr8.GoogleVisualization library is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with Intergr8.GoogleVisualization library.  If not, see <http://www.gnu.org/licenses/>.
 *                                                         
 * Purpose:  Generate a Warning status message
 *                                                         
 * Usage:                                                  
 *      Factory methods for generating known warnings
 *      Open constructor for generating custom warnings
 *      
 ********************************************************/
#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace Intergr8.GoogleVisualization
{
    internal class WarningMessage : StatusMessage
    {

        internal static StatusMessage DataTruncated(string message, string detailed_message)
        {
            StatusMessage msg = new StatusMessage("data_truncated", message, detailed_message);
            return msg;
        }

        internal static StatusMessage Other(string message, string detailed_message)
        {
            StatusMessage msg = new StatusMessage("other", message, detailed_message);
            return msg;
        }

        internal static StatusMessage Warning(string reason, string message, string detailed_message)
        {
            StatusMessage msg = new StatusMessage(reason, message, detailed_message);
            return msg;
        }

    }
}
